<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./axios.min.js"></script>
    <script>
        var baseURL='http://123.57.30.43:7788';
        var token='eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJOUT09Iiwic3ViIjoiYWRtaW4xIiwiaXNzIjoiMDk4ZjZiY2Q0NjIxZDM3M2NhZGU0ZTgzMjYyN2I0ZjYiLCJpYXQiOjE2MDIyMDg5NjQsImF1ZCI6InJlc3RhcGl1c2VyIiwiZXhwIjoxNjAyMzgxNzY0LCJuYmYiOjE2MDIyMDg5NjR9.y7ri9xTZSz3AqF9iY81GDbc4JAoagxYsrfo_uSb9Lhs'
        function getUser(){
            return axios.get(baseURL+'/baseUser/findAll',{
                headers:{
                    "Authorization":token
                }
            }).then()
        }
        function getCategory(){
            return axios.get(baseURL+'/category/findAll',{
                headers:{
                    "Authorization":token
                }
            }).then()
        }
        axios.all([getUser(),getCategory()]).then(axios.spread(function(data1,data2){
            //data1->users
            //data2->categorys
            console.log('users',data1)
            console.log('categorys',data2)
        }))
    </script>
</head>
<body>
    
</body>
</html>